package com.qy.bean ;

import java.io.Serializable;
import java.util.Date;

/**
* u_user_info 
* @author zhangwenlong
* @date   Wed Jan 31 11:37:49 GMT+08:00 2018
*/ 
public class UserInfo extends DataObject  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**  */
	private int id;

	/**  */
	private String image;

	/**  */
	private String userName;

	/** 性別 */
	private int sex;

	/**  */
	private String thirdId;

	/**  */
	private String phone;

	/**  */
	private Date createDate;

	/**  */
	private Date loginDate;

	/**  */
	private String loginIp;

	/**  */
	private int userType;

	/**  */
	private int userStatus;

	/** 临时密匙 */
	private String tmpSecret;

	public void setId(int id) {
		if (this.id != id) {
			this.id = id;
			setOp(Option.Update);
		}
	}

	public int getId() {
		return id;
	}

	public void setImage(String image) {
		if(this.image == null || !this.image.equals(image)) {
			this.image = image;
			setOp(Option.Update);
		}
	}

	public String getImage() {
		return image;
	}

	public void setUserName(String userName) {
		if(this.userName == null || !this.userName.equals(userName)) {
			this.userName = userName;
			setOp(Option.Update);
		}
	}

	public String getUserName() {
		return userName;
	}

	public void setSex(int sex) {
		if (this.sex != sex) {
			this.sex = sex;
			setOp(Option.Update);
		}
	}

	public int getSex() {
		return sex;
	}

	public void setThirdId(String thirdId) {
		if(this.thirdId == null || !this.thirdId.equals(thirdId)) {
			this.thirdId = thirdId;
			setOp(Option.Update);
		}
	}

	public String getThirdId() {
		return thirdId;
	}

	public void setPhone(String phone) {
		if(this.phone == null || !this.phone.equals(phone)) {
			this.phone = phone;
			setOp(Option.Update);
		}
	}

	public String getPhone() {
		return phone;
	}

	public void setCreateDate(Date createDate) {
		if(this.createDate == null || !this.createDate.equals(createDate)) {
			this.createDate = createDate;
			setOp(Option.Update);
		}
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setLoginDate(Date loginDate) {
		if(this.loginDate == null || !this.loginDate.equals(loginDate)) {
			this.loginDate = loginDate;
			setOp(Option.Update);
		}
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginIp(String loginIp) {
		if(this.loginIp == null || !this.loginIp.equals(loginIp)) {
			this.loginIp = loginIp;
			setOp(Option.Update);
		}
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setUserType(int userType) {
		if (this.userType != userType) {
			this.userType = userType;
			setOp(Option.Update);
		}
	}

	public int getUserType() {
		return userType;
	}

	public void setUserStatus(int userStatus) {
		if (this.userStatus != userStatus) {
			this.userStatus = userStatus;
			setOp(Option.Update);
		}
	}

	public int getUserStatus() {
		return userStatus;
	}

	public void setTmpSecret(String tmpSecret) {
		if(this.tmpSecret == null || !this.tmpSecret.equals(tmpSecret)) {
			this.tmpSecret = tmpSecret;
			setOp(Option.Update);
		}
	}

	public String getTmpSecret() {
		return tmpSecret;
	}

}

